package com.learn.springboot.controller.tack;

import com.learn.springboot.scheduled.AsyncTack;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 异步调用的测试接口
 * @author wangxing
 * @version 2020/8/3 12:14 Administrator
 */
@RestController
@RequestMapping("/tack")
public class TackController {
    @Autowired
    public AsyncTack asyncTack;

    @GetMapping("/async")
    public String asyncTack() {
        asyncTack.asyncTack();
        asyncTack.asyncTack01();
        return "success";
    }
}
